package db;

import java.net.URL;

//////////////////////////////////////////////////////////////////////////
//// dbInfo
/** 

@author Ivan Jeukens
@version v 0.1 06/02/2002
*/
public class dbInfo {

    public dbInfo() {

    }

    ///////////////////////////////////////////////////////////////////
    ////                        public methods                     ////
        
    public void setStatus(int value) {
        _status = value;
    }
    
    public int getStatus() {
        return _status;
    }       

    public String getName() {
        return _name;
    }
    
    public void setURL(URL url) {
        _url = url;
    }
    
    public URL getURL() {
        return _url;   
    }

    public String toString() {
        return _name;
    }

    public dbInfoSummary getSummary() {
        if(_summary == null) {
            _summary = new dbInfoSummary(_name, _url);
        }
        return _summary;
    }
    
    ///////////////////////////////////////////////////////////////////
    ////                        private methods                    ////

    ///////////////////////////////////////////////////////////////////
    ////                        private variables                  ////

    protected String _name;
    protected URL _url;
    protected int _status;

    protected dbInfoSummary _summary;
}
